.. _ocapanbalance: 1.1.1.6 OcaPanBalance ====================== Class Hierarchy: :ref:`OcaRoot ` :raw:html:`→` :ref:`OcaWorker ` :raw:html:`→` :ref:`OcaActuator ` :raw:html:`→` :ref:`OcaPanBalance ` .. cpp:class:: OcaPanBalance: OcaActuator Pan or Balance control. **Properties**: .. _ocapanbalance_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.1.6" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``4.1``. .. _ocapanbalance_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 2 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``4.2``. .. _ocapanbalance_position: .. cpp:member:: OcaFloat32 Position Pan position. Range = -1.0 to +1.0. -1.0 is 100% left, +1.0 is 100% right. This property has id ``4.1``. .. _ocapanbalance_midpointgain: .. cpp:member:: OcaDB MidpointGain Midpoint gain. Normally, max=0dB, min=-6dB. May be readonly for pan/balance objects with fixed midpoint gains. This property has id ``4.2``. Properties inherited from :ref:`OcaWorker `: - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` Properties inherited from :ref:`OcaRoot `: - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` **Methods**: .. _ocapanbalance_getposition: .. cpp:function:: OcaStatus GetPosition(OcaFloat32 &Position, OcaFloat32 &minPosition, OcaFloat32 &maxPosition) Gets the value and limits of the Position property. The return value indicates whether the data was successfully retrieved. This method has id ``4.1``. :param OcaFloat32 Position: Output parameter. :param OcaFloat32 minPosition: Output parameter. :param OcaFloat32 maxPosition: Output parameter. .. _ocapanbalance_setposition: .. cpp:function:: OcaStatus SetPosition(OcaFloat32 Position) Sets the value of the Position property. The return value indicates whether the property was successfully set. This method has id ``4.2``. :param OcaFloat32 Position: Input parameter. .. _ocapanbalance_getmidpointgain: .. cpp:function:: OcaStatus GetMidpointGain(OcaDB &Gain, OcaDB &minGain, OcaDB &maxGain) Gets the value and limits of the MidpointGain property. The return value indicates whether the data was successfully retrieved. This method has id ``4.3``. :param OcaDB Gain: Output parameter. :param OcaDB minGain: Output parameter. :param OcaDB maxGain: Output parameter. .. _ocapanbalance_setmidpointgain: .. cpp:function:: OcaStatus SetMidpointGain(OcaDB Gain) Sets the value of the MidpointGain property. The return value indicates whether the property was successfully set. This method has id ``4.4``. :param OcaDB Gain: Input parameter. Methods inherited from :ref:`OcaWorker `: - :ref:`OcaWorker::GetEnabled(enabled) ` - :ref:`OcaWorker::SetEnabled(enabled) ` - :ref:`OcaWorker::AddPort(Label, Mode, ID) ` - :ref:`OcaWorker::DeletePort(ID) ` - :ref:`OcaWorker::GetPorts(OcaPorts) ` - :ref:`OcaWorker::GetPortName(PortID, Name) ` - :ref:`OcaWorker::SetPortName(PortID, Name) ` - :ref:`OcaWorker::GetLabel(label) ` - :ref:`OcaWorker::SetLabel(label) ` - :ref:`OcaWorker::GetOwner(owner) ` - :ref:`OcaWorker::GetLatency(latency) ` - :ref:`OcaWorker::SetLatency(latency) ` - :ref:`OcaWorker::GetPath(NamePath, ONoPath) ` Methods inherited from :ref:`OcaRoot `: - :ref:`OcaRoot::GetClassIdentification(ClassIdentification) ` - :ref:`OcaRoot::GetLockable(lockable) ` - :ref:`OcaRoot::LockTotal() ` - :ref:`OcaRoot::Unlock() ` - :ref:`OcaRoot::GetRole(Role) ` - :ref:`OcaRoot::LockReadonly() `